// 启动
import { Evaluator } from './evaluator.js'
import { parse } from './SyntaxParser.js'


document.getElementById('run').addEventListener('click', event => {
  let sourceVal = document.getElementById('source').value
  let r = new Evaluator().evaluate(parse(sourceVal))
  
  console.log(r)
})
